package com.qianya.system.manage.web.login.mapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qianya.model.pojo.login.qo.LoginRoleQO;
import com.qianya.model.pojo.login.qo.LoginUsersInsertQO;
import com.qianya.model.pojo.login.qo.LoginUsersQO;
import com.qianya.model.pojo.login.vo.LoginRoleUserVO;
import com.qianya.model.pojo.login.vo.LoginRoleVO;
import com.qianya.model.pojo.login.vo.LoginUsersVO;
import com.qianya.system.manage.web.login.model.LoginUsers;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import javax.ws.rs.GET;
import java.util.List;


/**
 * <p>
 * 用户 Mapper 接口
 * </p>
 *
 * @author lhl
 * @since 2020-07-02
 */
public interface LoginUsersMapper extends BaseMapper<LoginUsers> {
    List<LoginUsersVO> find(@Param("loginUsersQO") LoginUsersQO loginUsersQO);

    IPage<LoginUsersVO> find(@Param("iPage")IPage iPage, @Param("loginUsersQO") LoginUsersQO loginUsersQO);

    LoginUsersVO login(@Param("loginUsersQO") LoginUsersQO loginUsersQO);

    LoginUsersVO findById(@Param("uId")String uId);

    LoginUsersVO findByPhone(String phone);

    List<LoginUsersVO> findOrdinaryUser(@Param("loginUsersQO")LoginUsersQO loginUsersQO);

    LoginUsers findByPassword(String uPassword, String uId);
    int updateStatus(LoginUsersQO loginUsersQO);
}
